package com.hunttown.mes.rpc.api;

import com.hunttown.common.domain.Page;
import com.hunttown.mes.rpc.domain.TransportCompanyDTO;
import com.hunttown.mes.rpc.domain.query.TransportCompanyDTOQuery;

import java.util.List;
import java.util.Map;

/**
 * created by wangjunfu on 2019-05-19 01:20:10
 */
public interface TransportCompanyRpcService {

    TransportCompanyDTO insert(TransportCompanyDTO transportCompanyDTO);

    Boolean updateInfoById(TransportCompanyDTO transportCompanyDTO);

    Boolean updateInfoByQuery(TransportCompanyDTOQuery transportCompanyDTOQuery);

    TransportCompanyDTO selectById(Integer id);

    TransportCompanyDTO selectObjByQuery(TransportCompanyDTOQuery transportCompanyDTOQuery);

    Page<TransportCompanyDTO> getListForPage(TransportCompanyDTOQuery transportCompanyDTOQuery);

    Boolean deleteById(Integer id);

    List<Map<String, String>> selectSimilarCompany(String similar, Integer companyType);
}